<template>
  <div class="home">
    <div class="header">
      <a></a>
    </div>
    <div class="search">
      <div class="search-content">
          <p>
            <input type="search" placeholder="搜索职位/公司">
            <button>搜索</button>
            <i></i>
          </p>
          <div class="chat-warp">
            <div class="chat-icon">
              <img src="../assets/images/chat.png">
            </div>
            <div>消息</div>
          </div>
      </div>
    </div>
    <div class="main">
      <div class="job">
        <dl v-for="item in jobdetail" :key="item.id">
          <dt>
            <img :src=item.imgurl alt="">
            <div class="sub-name">
              <h4>{{item.title}}</h4>
            </div>
          </dt>
          <dd>
            <router-link tag="a" to="/work" v-for="(k,i) in item.content" :key="i">{{k}}</router-link>
          </dd>
        </dl>
      </div>
    </div>
    <div class="footer">
      <div class="tips">
        <p>违法和不良信息举报邮箱：jubao@kanzhun.com</p>
        <p>企业服务热线和举报投诉：400 065 5799</p>
        <p>人力资源服务许可证</p>
      </div>
    </div>
    <div class="download_bar">
      <a href="https://www.zhipin.com/user/signup.html">
        <div class="log">
          <img src="https://static.zhipin.com/zhipin-geek/v177/h5/wap/images/logo-x.png" alt="">
          <div class="log_text">
            找工作要跟<br>
            老板谈
          </div>
        </div>
        <div class="btn">
          <span>立即注册</span>
        </div>
      </a>
    </div>
  </div>
</template>

<script>

export default {
  name: 'Home',
  data() {
    return {
      jobdetail:[
        {
          id:'001',
          imgurl:require('../assets/images/technology.png'),
          title:'技术',
          content:['java','PHP','web前端','数据挖掘','C++','Python','Android','iOS']
        },
        {
          id:'002',
          imgurl:require('../assets/images/product.png'),
          title:'产品',
          content:['产品经理','产品助理','网页产品经理','数据产品经理']
        },
        {
          id:'003',
          imgurl:require('../assets/images/designer.png'),
          title:'技术',
          content:['UI设计师','平面设计师','交互设计师','设计总监']
        },
        {
          id:'004',
          imgurl:require('../assets/images/market.png'),
          title:'市场',
          content:['市场营销','商务渠道','品牌公关','市场总监','策划经理','活动策划','SEO','SEM']
        }
      ],
    }
  },
  components: {
  },
}
</script>
<style lang="scss">
@import "../assets/scss/variables";
.home{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 13px;
  padding-bottom: 56px;
  .header{
    height: 196px;
    background: url('../assets/images/home-bg.png') no-repeat;
    background-size: 100% 100%;
    a{
      height:138px;
      display: block;
      background: url('../assets/images/home-search-text.png') 52px center no-repeat;
      background-size: 252px auto;
    }
  }
  .search{
    position: relative;
    top: -58px;
    .search-content{
      display: flex;
      align-items: center;
      .chat-warp{
        display: flex;
        flex-direction: column;
        font-size: 9px;
        color: #fff;
        .chat-icon{
          position: relative;
          display: flex;
          flex-direction: column;
          img{
            width: 18px;
            height: 18px;
          }
          &::after{
            content: '';
            position: absolute;
            top: -1px;
            right: -1px;
            width: 6px;
            height:6px;
            border-radius: 3px;
            background: #fd896b;
          }
        }
      }
      p{
        display: flex;
        justify-content: space-between;
        margin: 0 15px;
        padding:0 15px;
        width: 75%;
        background: #fff;
        border-radius: 30px;
        input{
          border: none;
          height: 37px;
        }
        button{
          outline: none;
          border: none;
          background: #fff;
          color: #5bd4c7;
          font-size: 14px;
        }
      }
    }
  }
  .main{
    position: relative;
    top: -35px;
    .job{
      dl{
        display: flex;
        flex-direction: column;
        margin: 0 10px;
        padding-top: 18px;
        padding-bottom: 16px;
        border-bottom: 1px solid #f5f8f9;
        dt{
          display: flex;
          img{
            width: 50px;
            height: 50px;
          }
        }
        dd{
          margin-left: -4px;
          display: flex;
          flex-wrap: wrap;
          a{
            display: inline-block;
            padding: 5px;
            margin: 5px;
            color: #7e8793;
            background-color: #f5f8f9;
            border-radius: 8px;
          }
        }
      }
    }
  }
  .footer{
    font-size: 10px;
    color:#919aa7;
    margin-bottom: 10px;
    text-align: center;
    .tips{
      display: inline-block;
      line-height: 18px;
      p{
        margin: 0;
      }
    }
  }
  .download_bar{
    position: fixed;
    bottom: 0;
    left: 0;
    height: 56px;
    width: 100%;
    background-color: map-get($colors, "primary");
    a{
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      .log{
        flex:1;
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #fff;
        margin-left: 20px;
        img{
          width: 42px;
          height: 42px;
        }
        .log_text{
          margin-left: 20px;
        }
      }
      .btn{
        margin-right: 20px;
        span{
          display: inline-block;
          background-color: #fff;
          height: 32px;
          line-height: 32px;
          color: map-get($colors, "primary");
          padding: 0 15px;
          font-size: 14px;
          border-radius: 30px;
        }
      }
    }
  }
}

</style>
